<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>webrx-title</title>
    <script src="js/jquery-3.2.1.min.js"></script>
    <script>
        function tt(){
            $.ajax({
                type:'post',
                url:'timer',
                cache:false,
                dataType:'text',
                success:function(d){
                    $('h3:first').html(d);
                }
            })
        }
        $(function(){
            tt();
            setInterval(tt,1000);
        })
    </script>
</head>
<body>
<h3></h3>
<script>
    var d = new Date();
    d.setTime(1504602838384);
    document.write(d.toLocaleString());
</script>
</body>
</html>